from django.db import models
from django.contrib import admin
from django.conf.urls.defaults import *
from django.http import HttpResponse
from django.template import loader, Context

class DemoList(models.Model):
	field_id = models.IntegerField()
	demo_name = models.CharField()
	TYPE_CHOICES = (
		('I', 'indoor'),
		('O', 'outdoor'),
	)
	demo_type = models.CharField(max_length=1, choices=TYPE_CHOICES)
	ALGORITHM_TYPE_CHOICES = (
		('1', '1'),
		('2', '2'),
		('3', '3'),
		('4', '4'),
		('s3', 'super3'),
		('s4', 'super4'),
		('r2', 'render2'),
		('r3', 'render3')
	)
	algorithm_type = models.CharField(max_length=2, choices=ALGORITHM_TYPE_CHOICES)

# the first_page to see - decide later of how to init this page	
def DemoHandler(request):
	t = loader.get_template("demo.html")
	c = Context({
			})
	
	return HttpResponse(t.render(c))
	
urlpatterns = patterns('',
						url(r'^$', DemoHandler),
                        )